<?php


namespace app\controllers;


use app\models\request\ReqGoodsPage;
use app\models\request\ReqNews;
use app\models\UserDto;
use app\service\RecommendService;

class NewsController extends BaseJsonController
{
    /**
     * @param $req ReqNews
     * @param $userInfo UserDto
     * @return mixed|void
     */
    public function doService($req, $userInfo)
    {

        $service = new RecommendService();
        return $service->listPage($req);
    }


    protected function injectionReq()
    {
        return new ReqNews();
    }
    public function needLogin(){
        return false;
    }

}